package persistence;

import java.util.HashMap;

import main.BAKAServerPlugin;
import plugins.BAKACommand;

public class CSubManager extends HashMap<String, CSubPlugin> {
	private static final long serialVersionUID = 1121162751049846469L;
	
	public CSubManager() {
		super();
		put(BAKACommand.class.getName(), new BAKACommand(BAKAServerPlugin.instance));
	}
	
	public void setEnable(String name)
	{
		get(name).onEnable();
	}
	
	public void setDisable(String name)
	{
		get(name).onDisable();
	}

}
